package com.zjmcollege.hotpot.service;

import com.zjmcollege.hotpot.entity.Article;
import com.zjmcollege.hotpot.model.ArticleModel;
import org.springframework.data.domain.Page;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-11-07 21:00
 */
public interface ArticleService {
    Article save(ArticleModel articleModel);

    Page<Article> query(String key, int page, int pageSize);

    Article findById(Long id);

    Page<Article> query(int page, int pageSize);
}
